// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 

package com.yoyo.lib;

// Referenced classes of package com.stay.lib:
//            UserInfo

public class AppException extends Exception {
    
    public static final String SYNC_BLOCKED = "BLOCKED";
    public static final String SYNC_ERROR = "ERROR";
    public static final String SYNC_EXCEPTION = "Synchronization error";
    public static final String SYNC_SUCCESS = "SUCCESS";
    private static final long serialVersionUID = 1L;
    private ErrorType mError;
    private UserInfo mErrorInfo;
    private String mException;
    
    public static enum ErrorType {
        CancelException, CloudException, ConnectionException, DatabaseException, FileException, JsonException, MigrationException, NormalException, SyncException
    }

    public AppException(ErrorType errortype, String exception, String s1, UserInfo userinfo) {
        super(s1);
        mError = errortype;
        mErrorInfo = userinfo;
        mException = exception;
    }

    public ErrorType getError() {
        return mError;
    }

    public UserInfo getErrorInfo() {
        return mErrorInfo;
    }

    public String getException() {
        return mException;
    }

}
